import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/ems-api/ems/earn/listEarnType',
    method: 'get',
    params: query
  })
}

export function createEarnType(query) {
  return request({
    url: '/ems-api/ems/earn/createEarnType',
    method: 'post',
    data: query
  })
}

export function updateEarnType(query) {
  return request({
    url: '/ems-api/ems/earn/updateEarnType',
    method: 'post',
    data: query
  })
}